<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSlideTypesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('slide_types', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('type_id')->comment('主键ID');
            $table->string('name', 100)->default('')->comment('导航分类名称');
            $table->string('description')->default('')->comment('导航分类说明');
            $table->boolean('status')->default(1)->comment('状态,1:显示;2:隐藏');
            $table->timestamps();
        });
    }


    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('slide_types');
    }

}
